package a_factory.a_functionFactory;

/**
 * Created by zw on 2018/12/6.
 */
public class functionTest {
    public static void main(String[] args) {
        Factory benzFactory = new BenzFactory();
        Factory bmwFactory = new BmwFactory();
        Factory toyotaFactory = new ToyotaFactory();
        benzFactory.getCar().run();
        bmwFactory.getCar().run();
        toyotaFactory.getCar().run();
    }
}
